<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta content="text/html;charset=utf-8">
<title>修改个人信息</title>
<%-- bootstrap样式 --%>
<link href="resources/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="resources/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet">
<link href="resources/css/index.css" rel="stylesheet">

<link href="resources/bootstrap/css/bootstrapValidator.min.css" rel="stylesheet">
<link href="resources/bootstrap/css/bootstrap-datetimepicker.min.css" rel="stylesheet">
</head>
<body>
<s:include value="../header-common.jsp" />
<div class="container-fluid">
	<div class="row">
		<h1 style="text-align:center;text-shadow:1px 1px;">修改个人信息</h1>
	</div>

	<div class="row">
		<s:if test="actionErrors.size()>0 || fieldErrors.size()>0">
			<div
				class="alert alert-danger col-sm-7 col-sm-offset-2">
				<s:actionerror />
				<s:fielderror></s:fielderror>
			</div>
		</s:if>
	</div>

	<s:form name="checkUpdate" action="checkUpdate" method="post"
		class="form-horizontal container-fluid">
		<div class="form-group">
			<label class="col-sm-3 control-label">用户帐号</label>
			<div class="col-sm-6">
				<div class="input-group">
					<input type="email" class="form-control"
						readonly placeholder="Email" value="${employee.employeeEmail}">
					<span class="input-group-addon"> 
						<span class="glyphicon glyphicon-envelope"></span>
					</span>
				</div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">用户姓名</label>
			<div class="col-sm-6">
				<div class="input-group">
					<input type="text" class="form-control"
						name="employeeName" value="${employee.employeeName }" placeholder="Name"
						data-bv-notempty data-bv-notempty-message="用户姓名不能为空."
						data-bv-stringlength data-bv-stringlength-min="3"
						data-bv-stringlength-max="30">
					<span class="input-group-addon">
						<span class="glyphicon glyphicon-user"></span>
					</span>
				</div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">出生日期</label>
			<div class="col-sm-6">
				<div class='input-group date' id='datetimepicker1'>
					<input type="text" class="form-control" name="birthday"
						value="${employee.birthday }" placeholder="出生日期"> 
					<span
						class="input-group-addon"> 
						<span class="glyphicon glyphicon-calendar"></span>
					</span>
				</div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">联系电话</label>
			<div class="col-sm-6">
				<div class="input-group">
					<input type="text" class="form-control" name="contact"
						value="${employee.contact }" placeholder="Phone">
					<span class="input-group-addon">
						<span class="glyphicon glyphicon-phone-alt"></span>
					</span>
				</div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">性别</label>
			<div class="col-sm-6">
				<select name="sex" class="form-control">
					<option value="0">请选择性别</option>
					<option value="1">男</option>
					<option value="2">女</option>
				</select>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">所属角色</label>
			<div class="col-sm-6">
				<div class="input-group">
					<input type="text" class="form-control"
						value="${employee.role.roleName }" readonly placeholder="暂未分配角色">
					<span class="input-group-addon">
						<span class="glyphicon glyphicon-leaf"></span>
					</span>
				</div>
			</div>
		</div>
		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-7">
				<div class="btn-group btn-group-justified">
					<a class="btn btn-info" style="padding:0;">
						<button type="submit" 
							style="background:none;border:0;margin:0;padding:0;">提交修改</button>
					</a><a class="btn btn-info"><button type="reset"
							style="width:100%;background:none;border:0;margin:0;">重置</button></a>
					<a href="personalInfo.do" class="btn btn-info">个人信息</a>
				</div>
			</div>
		</div>
	</s:form>
</div>
<script src="resources/bootstrap/js/jquery.min.js"></script>
<script src="resources/bootstrap/js/bootstrap.min.js"></script>

<script	src="resources/bootstrap/js/bootstrapValidator.min.js"></script>
<script	src="resources/bootstrap/js/zh_CN.min.js"></script>
<script src="resources/bootstrap/js/moment.min.js"></script>
<script	src="resources/bootstrap/js/bootstrap-datetimepicker.min.js"></script>

<script src="resources/js/register.js"></script>
</body>
</html>
